<template>
  <div id="wrapper" style="padding: 20px">
    <el-row :gutter="20">
      <el-col :span="4">
        <el-card class="license-card" :body-style="{ padding: '0px' }">
          <img src="@/assets/license/image/licenseConfig.png" class="image">
          <div style="padding: 2px;text-align: center;">
            <span>许可证配置</span>
            <div class="bottom clearfix">
              <el-button @click="toLicenseDetail" type="text" class="button">查看详情</el-button>
              <el-button @click="toLicenseEdit" type="text" class="button">编辑</el-button>
            </div>
          </div>
        </el-card>
      </el-col>
      <el-col :span="4">
        <el-card class="license-card" :body-style="{ padding: '0px' }">
          <img src="@/assets/zentao/image/zentaoConfig.png" class="image">
          <div style="padding: 2px;text-align: center;">
            <span>禅道配置</span>
            <div class="bottom clearfix">
              <el-button @click="toZentaoDetail" type="text" class="button">查看详情</el-button>
              <el-button @click="toZentaoEdit" type="text" class="button">编辑</el-button>
            </div>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  export default {
    name: 'etools',
    methods: {
      toLicenseDetail() {
        this.$router.push('/licenseConfigDetail')
      },
      toLicenseEdit() {
        this.$router.push('/licenseConfigEdit')
      },
      toZentaoDetail() {
        this.$router.push('/zentaoConfigDetail')
      },
      toZentaoEdit() {
        this.$router.push('/zentaoConfigEdit')
      }
    }
  }
</script>

<style>
  .bottom {
    /* margin-top: 13px; */
    line-height: 12px;
  }

  .button {
    padding: 0;
  }

  .image {
    width: 100%;
    height: 160px;
    display: block;
  }

  .clearfix:before,
  .clearfix:after {
      display: table;
      content: "";
  }
  
  .clearfix:after {
      clear: both
  }
</style>
